import Example.*;

public class Polymorphism {
    public static void main(String[] args) {
        Flower flower1 = new Peony();
        flower1.FloralLanguage();
        Flower flower2 = new Oleander();
        flower2.FloralLanguage();
        final String part = "于是，";

        if (flower2 instanceof Peony) {
            Peony peony = (Peony) flower1;
            flower1.FloralLanguage();
        } else {
            System.out.println("但磐岩也会归于尘土。");
        }
    }
}
